import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';
import 'package:yw_bapp/widgets/wrap_gesture_widget.dart';

class BigImageWidget extends StatelessWidget {
  final imgUrl;
  const BigImageWidget({Key key, @required this.imgUrl}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Color.fromRGBO(0, 0, 0, 0.3),
      child: wrapGesture(
        child: PhotoView(
          imageProvider: NetworkImage("$imgUrl"),
        ),
        function: (){
          Navigator.pop(context);
        },
      ),
    );
  }
}
